package com.lagou.user.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="lagou-service-code")
public interface CodeService {

    @RequestMapping(value = "/api/code/validate/{email}/{code}",method = RequestMethod.GET)
    public int validate(@PathVariable(name = "email") String email, @PathVariable(name = "code")String code);

}
